let numbers = [1,2,3,4,5]
let total = numbers.reduce(function(memo,current){
    return memo + current
},0)
console.log(total)